const Joi = require('@hapi/joi');
const ValidationError = require('./validationError');
//定义验证规则
const articleSchema = Joi.object({
    pagenum: Joi.number().integer().required().error(new ValidationError('pagenum必填且必须为整型')),
    pagesize: Joi.number().integer().required().error(new ValidationError('pagesize必填且必须为整型'))
});

module.exports = articleSchema;